import request from '@/utils/request'
import type {
  loginFormData,
  loginResponseData,
  userInfoReponseData,
} from './type'

//登录接口
export const reqLogin = (data: loginFormData) =>
  request.post<any, loginResponseData>(`login`, data)
//获取用户信息
export const reqUserInfo = () => request.get<any, userInfoReponseData>(`info`)
//退出登录
export const reqLogout = () => request.post<any, any>(`logout`)
